# Maintainer: Daniel Isaksen <d@duniel.no>
pkgname=elvish
pkgver=0.14.0
pkgrel=0
pkgdesc="A friendly and expressive shell for Linux, macOS and BSDs"
url="https://elvish.io/"
arch="all !mips !mips64" # boltdb
license="BSD-2-Clause"
makedepends="go"
options="!check chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/elves/elvish/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/elves/$pkgname"

prepare() {
	mkdir -p ${builddir%/*}
	mv "$srcdir"/$pkgname-$pkgver "$builddir"/
	default_prepare
}

build() {
	export GOPATH="$srcdir"
	go build -o bin/$pkgname
}

package() {
	install -Dm755 "$builddir"/bin/elvish -t "$pkgdir"/usr/bin
}

sha512sums="26193bee6e914c448d6896807757bb43b12d42bed33682d4ccce575a50d370fb3a89ff76d859913e649c9c365d882a4b1b661b0d73bd031e444177a440c2fa4c  elvish-0.14.0.tar.gz"
